<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <!--head-->
    <head>
    <meta charset="UTF-8">
    <title><?php echo ((isset($title ) && ($title !== ""))?($title ):"微校云"); ?></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <link rel="stylesheet" href="<?php echo (C("WEUI_CSS")); ?>weui.css">
    <link rel="stylesheet" href="<?php echo (C("TSOO")); ?>">
    <script src="<?php echo (C("JQ")); ?>"></script>
    <script src="<?php echo (C("WEUI_JS")); ?>weui.min.js"></script>
    
    <style>
        .weui-media-box {
            padding: 5px;
        }

        .title {
            text-align: center;
        }

        .addtitle {
            margin-left: 5px;
            height: 25px;
        }

        .addtitle img {
            font-size: 16px;
            height: 25px;
            float: right;
            margin-right: 20px;
            padding: 0;
            border: 0;
        }

        .fare_bd {
            border: 1px solid #efefef;
            margin: 5px 15px;
            background: #F7F7FA;
        }


    </style>
    <style>
        .weui-media-box__title {
            font-size: 19px;
        }

        .weui-media-box {
            padding: 10px;
        }

        .weui-media-box__desc {
            color: white;
        }

        .addtitle {
            background: white;
            margin-top: 10px;
            margin-left: 0;
            width: 100%;
        }

        hr {
            border: none;
            border-top: 1px solid #f4f4f4;

        }

        form {
            background: white;
        }

        .weui-btn-area {
            padding-bottom: 1px;
        }

        .chufa {
            text-align: center;
            font-size: 14px;
            background: white;
            margin: 3px 0;
            color: grey;
            border-radius: 15px;
        }

        .title {
            border: none;
        }

        /*改动一*/
        .weui-media-box_text .weui-media-box__title {
            margin-bottom: 0px;
        }
    </style>


</head>
</head>
<body>
<!-- 头部 -->

<?php if(C('IS_NAVBAR') != 0): ?><div class="weui-tabbar" style="position: fixed;bottom:0;">
        <a href="#" class="weui-tabbar__item " onclick="changeIndexStatus()">
                        <span style="display: inline-block;position: relative;">
                            <img id="indexImg" src="<?php echo (C("HOME_IMG")); ?>index<?php echo ((isset($nav1) && ($nav1 !== ""))?($nav1):'1'); ?>.png" alt=""
                                 class="weui-tabbar__icon">
                        </span>
            <p id="index" class="weui-tabbar__label <?php echo ($col1); ?>">首页</p>
        </a>
        <a href="#" class="weui-tabbar__item " onclick="changeServiceStatus()">
            <img id="serverImg" src="<?php echo (C("HOME_IMG")); ?>service<?php echo ((isset($nav2) && ($nav2 !== ""))?($nav2):'1'); ?>.png" alt="" class="weui-tabbar__icon">
            <p id="service" class="weui-tabbar__label <?php echo ($col2); ?>">客服</p>
        </a>
        <a href="#" class="weui-tabbar__item" onclick="changeCarStatus()">
                        <span style="display: inline-block;position: relative;">
                            <img id="carImg" src="<?php echo (C("HOME_IMG")); ?>riding<?php echo ((isset($nav3) && ($nav3 !== ""))?($nav3):'1'); ?>.png" alt="" class="weui-tabbar__icon">
                        </span>
            <p id="car" class="weui-tabbar__label" <?php echo ($col3); ?>>我的订单</p>
        </a>
        <a href="#" class="weui-tabbar__item" onclick="changeMyStatus()">
            <img id="myImg" src="<?php echo (C("HOME_IMG")); ?>my<?php echo ((isset($nav4) && ($nav4 !== ""))?($nav4):'1'); ?>.png" alt="" class="weui-tabbar__icon">
            <p id="my" class="weui-tabbar__label <?php echo ($col4); ?>">我的</p>
        </a>

        <script>

            //初始化首页按钮
            $(function () {
                if('<?php echo ($col1); ?>'!==''){
                    $("#index").addClass("mycolor");
                    $('#indexImg').attr('src', '<?php echo (C("HOME_IMG")); ?>index2.png');
                }

            });


            function changeIndexStatus() {
                window.location.href = "<?php echo U('Home/Index/index');?>";
                /*改变导航颜色*/

            }

            function changeServiceStatus() {

                window.location.href = "<?php echo U('Home/Server/index');?>";

            }

            function changeCarStatus() {

                window.location.href = "<?php echo U('Home/MyTicket/getHadNoPayTicket');?>";

            }

            function changeMyStatus() {
                /*改变导航颜色*/
                window.location.href = "<?php echo U('Home/User/index');?>";

            }

        </script>
    </div><?php endif; ?>

<!-- /头部 -->

<!-- 主体 -->



    <div class="weui-panel__bd title ts_nav">
        <div class="weui-media-box weui-media-box_text">
            <p class="weui-media-box__title"><?php echo ($ti["addr_from"]); ?> 至 <?php echo ($ti["addr_to"]); ?></p>
            <!--改1-->
            <!--<P>从<?php echo ($ti["addr_up_place"]); ?>上车,到<?php echo ($ti["addr_down_place"]); ?>下车</P>-->
            <p class="weui-media-box__desc"><?php echo ($ti["addr_depart_time"]); ?></p>
        </div>

        <p></p>
    </div>

    <!--改2-->
    <div class="chufa"><p>从<?php echo ($ti["addr_up_place"]); ?>上车,到<?php echo ($ti["addr_down_place"]); ?>下车</p></div>


    <div class="addtitle" style="width: 94%;padding: 10px;">添加乘客
        <a style="position: absolute;float: right;right: 0px;"
           href="/WeChat/Bus/index.php/Home/Order/selectPassenger/ticketId/<?php echo ($tickedId); ?>"><img src="<?php echo (C("HOME_IMG")); ?>add.png"></a>
    </div>
    <!--改3-->
    <hr>

    <form action="<?php echo U('Order/detailTicket');?>" method="post">

        <!--是否有乘客信息被传递过来-->
        <!--有:显示-->
        <!--无:不处理-->
        <?php if(!empty($psrInfo)): if(is_array($psrInfo)): foreach($psrInfo as $key=>$v): ?><!--乘客区域-->
                <div class="weui-panel__bd fare_bd">
                    <div class="weui-media-box weui-media-box_text " style="padding: 0px 9px;">
                        <input type="hidden" name="psr[]" value="<?php echo ($v["psr_id"]); ?>">
                        <h4 class="weui-media-box__title"><?php echo ($v["psr_name"]); ?>&nbsp;&nbsp; <?php echo ($v["psr_id_card"]); ?>
                            <span onclick="$(this).parent().parent().parent().remove()">

                            <!--改动2-->
                            <img style="    height: 22px;
                                        position: absolute;
                                        right: 5px;
                                        margin-top: 1px;"

                                 src="<?php echo (C("HOME_IMG")); ?>/reduce.png" alt="">

                        </span>
                        </h4>
                    </div>
                </div>
                <!--乘客区域--><?php endforeach; endif; endif; ?>
        <div class="weui-cell">
            <div class="weui-cell__hd "><label class="weui-label ">取票人</label></div>
            <div class="weui-cell__bd">
                <input value="<?php echo ($usrInfo["usr_name"]); ?>" name="get_ticket_pseson" class="weui-input" type="text"
                       placeholder="请输入去取票人">
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd "><label class="weui-label ">联系手机</label></div>
            <div class="weui-cell__bd">
                <input value="<?php echo ($usrInfo["usr_tel"]); ?>" name="get_ticket_tel" class="weui-input" type="number"
                       pattern="[0-9]*" placeholder="请输入联系手机">
            </div>
        </div>

        <div class="weui-cell">
            <div class="weui-cell__hd "><label class="weui-label ">折扣</label></div>
            <div class="weui-cell__bd">
                <input name="dicCode" class="weui-input" type="text" placeholder="请输入折扣码">
            </div>
        </div>


        <div class="weui-cell weui-cell_switch">
            <div class="weui-cell__bd">购买保险(&yen;<?php echo ($ti["addr_insur"]); ?>) <a href="#">?</a></div>
            <div class="weui-cell__ft">
                <input value="<?php echo ($ti["addr_insur"]); ?>" name="insur" class="weui-switch" type="checkbox" checked>
            </div>
        </div>

        <label for="weuiAgree" class="weui-agree">
            <input id="is_agree" id="weuiAgree" type="checkbox" class="weui-agree__checkbox" checked>
            <span class="weui-agree__text">
                阅读并同意<a href="javascript:void(0);">《相关条款》</a>
            </span>
        </label>


        <div class="weui-btn-area">
            <input type="submit" class="weui-btn weui-btn_primary" value="提交订单" style="margin-bottom: 50px;">
        </div>
    </form>


<!-- /主体 -->

<!-- 底部 -->



<!--用于将配置注入到js-->
<!--将配置加载到js-->
<script type="text/javascript">
(function(){
	var ThinkPHP = window.Think = {
	    "WEB_API": "<?php echo C('WEB_API');?>",
		"ROOT"   : "/WeChat/Bus", //当前网站地址
		"APP"    : "/WeChat/Bus/index.php", //当前项目地址
		"PUBLIC" : "/WeChat/Bus/Public", //项目公共目录地址
		"DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
		"MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
		"VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"]
	}
})();
</script>

<!-- 用于加载js代码 -->



<!--顺序不要颠掉-->



<!-- /底部 -->
</body>
</html>